package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchMapMonitorMapper;
import com.ruoyi.system.domain.DispatchMapMonitor;
import com.ruoyi.system.service.IDispatchMapMonitorService;

/**
 * 地图监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchMapMonitorServiceImpl implements IDispatchMapMonitorService 
{
    @Autowired
    private DispatchMapMonitorMapper dispatchMapMonitorMapper;

    /**
     * 查询地图监控
     * 
     * @param mapMonitorId 地图监控主键
     * @return 地图监控
     */
    @Override
    public DispatchMapMonitor selectDispatchMapMonitorByMapMonitorId(Long mapMonitorId)
    {
        return dispatchMapMonitorMapper.selectDispatchMapMonitorByMapMonitorId(mapMonitorId);
    }

    /**
     * 查询地图监控列表
     * 
     * @param dispatchMapMonitor 地图监控
     * @return 地图监控
     */
    @Override
    public List<DispatchMapMonitor> selectDispatchMapMonitorList(DispatchMapMonitor dispatchMapMonitor)
    {
        return dispatchMapMonitorMapper.selectDispatchMapMonitorList(dispatchMapMonitor);
    }

    /**
     * 新增地图监控
     * 
     * @param dispatchMapMonitor 地图监控
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchMapMonitor(DispatchMapMonitor dispatchMapMonitor)
    {
        return dispatchMapMonitorMapper.insertDispatchMapMonitor(dispatchMapMonitor);
    }

    /**
     * 修改地图监控
     * 
     * @param dispatchMapMonitor 地图监控
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchMapMonitor(DispatchMapMonitor dispatchMapMonitor)
    {
        return dispatchMapMonitorMapper.updateDispatchMapMonitor(dispatchMapMonitor);
    }

    /**
     * 批量删除地图监控
     * 
     * @param mapMonitorIds 需要删除的地图监控主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMapMonitorByMapMonitorIds(Long[] mapMonitorIds)
    {
        return dispatchMapMonitorMapper.deleteDispatchMapMonitorByMapMonitorIds(mapMonitorIds);
    }

    /**
     * 删除地图监控信息
     * 
     * @param mapMonitorId 地图监控主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMapMonitorByMapMonitorId(Long mapMonitorId)
    {
        return dispatchMapMonitorMapper.deleteDispatchMapMonitorByMapMonitorId(mapMonitorId);
    }
}
